package com.zh.modules.app.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel(value = "注册请求参数")
public class RegisterParam {

    @ApiModelProperty(value = "username", required = true)
    @NotBlank(message = "账号不能为空")
    private String username;

    @ApiModelProperty(value = "password", required = true)
    @NotBlank(message = "密码不能为空")
    private String password;


    @ApiModelProperty(value = "code")
    @NotBlank(message="验证码不能为空")
    private String code;
}
